package example.simple_mindmap.common.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
@Data
public class MessageDTO {
    //消息id
    private Long id;
    //发送id
    private Long pid;
    //发送人姓名
    private String pname;
    //接收id
    private Long rid;
    //消息正文
    private String content;
    //头像
    private String avatar;
    private Short type;
    //状态：0：未读；1：已读已回，2：已读未回
    private Short state;
    //创建时间
    @JsonFormat( pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;
}
